package com.sky.mapper.common;

import com.sky.annotation.AutoFill;
import com.sky.enumeration.OperationType;
import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 菜品口味管理Mapper
 *
 * @Author: Zhy
 * @Date: 2025-01-21 下午2:37
 * @Version: 1.0
 */
@Mapper
public interface DishFlavorMapper {

	/**
	 * 保存菜品口味
	 *
	 * @return:
	 * @param:
	 */
	Integer insertDishFlavor(@Param("flavors") List<DishFlavor> flavors);

	/**
	 * 根据菜品id批量删除口味
	 *
	 * @return:
	 * @param:
	 */
	void deleteDishFlavorByDishId(@Param("dishIds") List<Long> dishIds);

	/**
	 * 根据 id 删除口味
	 *
	 * @return:
	 * @param:
	 */
	void deleteDishFlavorById(@Param("dishId") Long dishId);

}
